package editer.views 
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.text.TextField;
	import org.xxl.views.base.SpriteTempleteComponent;
	import org.xxl.views.base.TempleteComponent;
	import org.xxl.views.base.ToggleButton;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class UI extends SpriteTempleteComponent 
	{
		public var loadPicBtn:SimpleButton;
		
		public var resizeBtn:SimpleButton;
		
		public var aAndHBtn:SimpleButton;
		
		public var wTxt:TextField;
		
		public var hTxt:TextField;
		
		public var sizeTxt:TextField;
		
		public var xPosTxt:TextField;
		
		public var yPosTxt:TextField;
		
		public var startDragBtn:SimpleButton;
		
		public var stopDragBtn:SimpleButton;
		
		public var zoomBtn:SimpleButton;
		
		public var upBtn:SimpleButton;
		
		public var downBtn:SimpleButton;
		
		public var leftBtn:SimpleButton;
		
		public var rightBtn:SimpleButton;
		
		public var moveableBtn1:ToggleButton;
		
		public var moveableBtn2:ToggleButton;
		
		public var maskBtn1:ToggleButton;
		
		public var maskBtn2:ToggleButton;
		
		public var outputBtn:SimpleButton;
		
		//-------------------------
		
		override public function buildTemplete(skin:DisplayObject):void 
		{
			super.buildTemplete(skin);
			
			//this.graphics.beginFill(0xCCCCCC, 0.3);
			//this.graphics.drawRect(0, 0, skin.width, skin.height);
			//this.graphics.endFill();
			
			wTxt.restrict = "0-9";
			hTxt.restrict = "0-9";
			sizeTxt.restrict = "0-9";
		}
		
	}

}